package user

import (
	"container/list"
	"code.google.com/p/my-little-rpg/goMyLittleRPG/char"
)

const MAX_CHARACTERS int = 10;

type User struct {
    id int
    username string
    password string
    age int
    characters *list.List
    //public
    //void setUsername(std::string username);

}

func New(username string) *User {
	return &User{username: username}
}

func (u *User) Username() string {
	return u.username
}

func (u *User) Age() int {
	return u.age
}

func (u *User) Id() int {
	return u.id
}

func (u *User) CreateRandomizedCharacter(name string) *char.Character {
	return nil
}

func (u *User) PrintCharacters() {

}

func (u *User) WhoAmI() {

}



/*Character* User::createRandomizedCharacter(std::string name) {
    if (this->characters.size() < this->MAX_CHARACTERS) {
        Character* c = new Character(name);
        this->characters.push_back(c);
        return c;
    } else {
        TooManyCharactersException tmce;
        throw tmce;
    }
}

void User::printCharacters() {
    for (int i = 0; i < this->characters.size(); i++) {
        Character* c = characters[i];
        cout << "Character name: " << c->getName() << endl;
    }
}
*/
